package com.credithc.customers.base.ro;

import com.credithc.customers.base.codes.CustomerCodes;
import com.credithc.customers.base.exception.CustomerException;
import lombok.Data;
import org.apache.commons.lang.StringUtils;

@Data
public class CustomerUnifyFixRo extends CustomerBaseRo {

    private String preCustomerNo;

    private String customerNo;

    private String newCustomerNo;

    public static void checkBaseParam(CustomerUnifyFixRo ro) {

        if (StringUtils.isBlank(ro.getCustomerNo()) || StringUtils.isBlank(ro.getPreCustomerNo()) || StringUtils.isBlank(ro.getNewCustomerNo())) {
            throw new CustomerException(CustomerCodes.PARAM_VALIDATE_ERROR, "参数不能为空!");
        }
    }

}
